Question 1

The food menu list is embedded in a NavigationView . Using the knowledge acquired in previous courses, which element you should use to display each of the items in the list that makes them tappable and able to open a new page when selected?


Question 2

Why should you make a struct identifiable?


Question 3

What is the basic difference between the modifiers onAppear and task that can be applied to SwiftUI views?


Question 4

The app that is being built in this course follows the structure shown in the next picture:

When an item is selected from the food items list, a new page opens showing details about the selected food. At the top of that new window, there is a back arrow which lets you navigate back to the previous page.

How do you have to build the food items on the list to make it work like this?


Question 5

Which steps might you use to add a search bar to a SwiftUI view?


Question 6

The main screen of the app you are building in this course has the following structure:

The menu breakdown area shows a list of food categories, such as Starters, Desserts, Drinks, Specials, etc.

Which code would you use to build a list with these categories that meet the following requirements?


Question 7

An entity is created in the Core Data model called Dish . This entity must contain the following properties: name , price and description . XCode will not let one property be named as description , why?